<?php
require '../../../zb_system/function/c_system_base.php';
require '../../../zb_system/function/c_system_admin.php';

$zbp->Load();
$action = 'root';
if (!$zbp->CheckRights($action)) {
    $zbp->ShowError(6);
    die();
}
if (!$zbp->CheckPlugin('acmeContract')) {
    $zbp->ShowError(48);
    die();
}
$blogtitle = 'acmeContract主题配置';

if (isset($_POST['isLogo'])) {
    global $zbp;
    $zbp->Config('acmeContract')->isLogo = $_POST['isLogo'];
    $zbp->Config('acmeContract')->isQQ = $_POST['isQQ'];
    $zbp->Config('acmeContract')->QQNUM = $_POST['QQNUM'];
    $zbp->Config('acmeContract')->isWX = $_POST['isWX'];
    $zbp->Config('acmeContract')->WXNUM = $_POST['WXNUM'];
    $zbp->Config('acmeContract')->isHzconv = $_POST['isHzconv'];


    $zbp->SaveConfig('acmeContract');
    $zbp->ShowHint('good');
}

require $blogpath.'zb_system/admin/admin_header.php';
require $blogpath.'zb_system/admin/admin_top.php';
?>
 

<link rel="stylesheet" href="./style/css/admin.css">
<h3>注释：上传图片如果配置页面图片未变化，请手动刷新和后台首页执行清空缓存并重新编译模板操作</h3>
<ul class="tab-list clearfloat">
  <li class="tab-itom">
      <input type="radio" id="testTabRadio1" class="test-radio" name="tab" checked="checked">
      <label class="test-label" for="testTabRadio1">基础配置</label>
      <div class="tab-box">
      <form id="form-postdata" name="form-postdata" method="post" enctype="multipart/form-data" action="main.php">
          <div class="commentFont">
              <span class='title'>是否显示图片logo:</span>
              <span>
              <input name="isLogo" type="text" value="<?php echo $zbp->Config('acmeContract')->isLogo; ?>" class="checkbox" style="display:none;" />
              </span>
              <span>打开图片logo后请到图片配置中修改上传图片logo</span>
          </div>
          <div class='commentFont inputClass'>
               <span class='title'>是否显示qq</span>
              <span>
              <input name="isQQ" type="text" value="<?php echo $zbp->Config('acmeContract')->isQQ; ?>" class="checkbox" style="display:none;" />
              </span>
              <span>
                <span class="name">QQ:</span>
                <input type="text" name="QQNUM" value="<?php echo $zbp->Config('acmeContract')->QQNUM; ?>"  placeholder="请输入QQ">
              </span>
          </div>
          <div class='commentFont inputClass'>
               <span class='title'>是否显示微信</span>
              <span>
              <input name="isWX" type="text" value="<?php echo $zbp->Config('acmeContract')->isWX; ?>" class="checkbox" style="display:none;" />
              </span>
              <span>
                <span class="name">微信:</span>
                <input type="text" name="WXNUM" value="<?php echo $zbp->Config('acmeContract')->WXNUM; ?>"  placeholder="请输入微信号">
              </span>
          </div>
          <div class='commentFont inputClass'>
               <span class='title'>是否显示繁体</span>
              <span>
              <input name="isHzconv" type="text" value="<?php echo $zbp->Config('acmeContract')->isHzconv; ?>" class="checkbox" style="display:none;" />
              </span>
          </div>
          <br/>
          <input class="button" type="submit" value="保存设置" />
        </form>
      </div>
  </li>
  <li class="tab-itom">
      <input type="radio" id="testTabRadio2" class="test-radio" name="tab">
      <label class="test-label" for="testTabRadio2">图片配置</label>
      <div class="tab-box">
        <table width="100%" border="1" width="100%" class="tableBorder">
          <tr>
            <th>名称</th>
            <td>图片预览</td>
            <th>图片选择</th>
            <th>操作</th>
            <th>备注</th>
          </tr>
          <form enctype="multipart/form-data" method="post" action="save.php?type=logo">
              <tr>
                <td><h3>图片logo</h3></td>
                <td>
                  <a href="style/images/logo.png" target="_blank">
                  <img  alt='图片logo' class="previewImg" src="<?php if (is_file('style/images/logo.png')) {
    echo 'style/images/logo.png';
} else {
    echo 'style/images/logo.png';
} ?>"/></a>
                </td>
                <td><input type="file" name="logo.png" accept="image/png" class="setfile" /></td>
                <td><input type="submit" value="上传" class="setbtn" /></td>
                <td>图片logo，图片格式为png</td>
              </tr>
          </form>
          <form enctype="multipart/form-data" method="post" action="save.php?type=banner1">
              <tr>
                <td><h3>轮播图1</h3></td>
                <td>
                  <a href="style/images/banner1.jpg" target="_blank">
                  <img  alt='轮播图' class="previewImg" src="<?php if (is_file('style/images/banner1.jpg')) {
    echo 'style/images/banner1.jpg';
} else {
    echo 'style/images/banner1.jpg';
} ?>"/></a>
                </td>
                <td><input type="file" name="banner1.jpg" accept="image/jpg" class="setfile" /></td>
                <td><input type="submit" value="上传" class="setbtn" /></td>
                <td>轮播图1，图片格式为jpg</td>
              </tr>
          </form>
          <form enctype="multipart/form-data" method="post" action="save.php?type=banner2">
              <tr>
                <td><h3>轮播图2</h3></td>
                <td>
                  <a href="style/images/banner2.jpg" target="_blank">
                  <img  alt='轮播图' class="previewImg" src="<?php if (is_file('style/images/banner2.jpg')) {
    echo 'style/images/banner2.jpg';
} else {
    echo 'style/images/banner2.jpg';
} ?>"/></a>
                </td>
                <td><input type="file" name="banner2.jpg" accept="image/jpg" class="setfile" /></td>
                <td><input type="submit" value="上传" class="setbtn" /></td>
                <td>轮播图1，图片格式为jpg</td>
              </tr>
          </form>
          <form enctype="multipart/form-data" method="post" action="save.php?type=banner3">
              <tr>
                <td><h3>轮播图3</h3></td>
                <td>
                  <a href="style/images/banner3.jpg" target="_blank">
                  <img  alt='轮播图' class="previewImg" src="<?php if (is_file('style/images/banner3.jpg')) {
    echo 'style/images/banner3.jpg';
} else {
    echo 'style/images/banner3.jpg';
} ?>"/></a>
                </td>
                <td><input type="file" name="banner3.jpg" accept="image/jpg" class="setfile" /></td>
                <td><input type="submit" value="上传" class="setbtn" /></td>
                <td>轮播图1，图片格式为jpg</td>
              </tr>
          </form>
          <form enctype="multipart/form-data" method="post" action="save.php?type=individualModule">
              <tr>
                <td><h3>站长信息顶部图片</h3></td>
                <td>
                  <a href="style/images/individualModule.jpg" target="_blank">
                  <img  alt='站长信息顶部图片' class="previewImg" src="<?php if (is_file('style/images/individualModule.jpg')) {
    echo 'style/images/individualModule.jpg';
} else {
    echo 'style/images/individualModule.jpg';
} ?>"/></a>
                </td>
                <td><input type="file" name="individualModule.jpg" accept="image/jpg" class="setfile" /></td>
                <td><input type="submit" value="上传" class="setbtn" /></td>
                <td>站长信息顶部图片，图片格式为jpg</td>
              </tr>
          </form>
          <form enctype="multipart/form-data" method="post" action="save.php?type=tx">
              <tr>
                <td><h3>站长信息-头像图片</h3></td>
                <td>
                  <a href="style/images/tx.jpg" target="_blank">
                  <img  alt='站长信息顶部图片' class="previewImg" src="<?php if (is_file('style/images/tx.jpg')) {
    echo 'style/images/tx.jpg';
} else {
    echo 'style/images/tx.jpg';
} ?>"/></a>
                </td>
                <td><input type="file" name="tx.jpg" accept="image/jpg" class="setfile" /></td>
                <td><input type="submit" value="上传" class="setbtn" /></td>
                <td>站长信息-头像图片，图片格式为jpg</td>
              </tr>
          </form>
        </table>

      </div>
  </li>
  <li class="tab-itom">
      <input type="radio" id="testTabRadio3" class="test-radio" name="tab">
      <label class="test-label" for="testTabRadio3">配置说明</label>
      <div class="tab-box">
        1. 备案号设置位置：网站设置->基础设置-> 版权说明<br/><br/>
        2. 文字logo：网站设置->基础设置-> 网站标题
      </div>
  </li>
</ul>

<?php
require $blogpath.'zb_system/admin/admin_footer.php';
?>